/* This is a generated file. Don't edit. Edit the source instead.
 */

#include <stdlib.h>
#include <stdio.h>
#include <inttypes.h>
#include "io.h"
#include "log.h"
#include "sphashd_client.h"

int hs_send_add(hs_t *hs, const char *filename)
{
    int rc = hs_send_command(hs, "add$%s|", filename ? filename : "");
    return rc;
}

int hs_send_shutdown(hs_t *hs)
{
    int rc = hs_send_command(hs, "shutdown|");
    return rc;
}

int hs_send_abort(hs_t *hs)
{
    int rc = hs_send_command(hs, "abort|");
    return rc;
}

int hs_send_set_delay(hs_t *hs, unsigned int delay)
{
    int rc = hs_send_command(hs, "set-delay$%u|", delay);
    return rc;
}
